package com.guigu.servicesystem.service;

import com.guigu.common_util.pojo.utils.Result;
import com.guigu.servicesystem.entity.TbAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.servicesystem.entity.vo.Admin_role;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2020-07-08
 */
public interface TbAdminService extends IService<TbAdmin>, UserDetailsService {
    // 分页条件查询
    Result findPage(Map<String, Object> searchMap, Integer page, Integer size);
    //查询所有登录账户跟对应角色
    List<Admin_role> selectAllAdmin_Role(int status);
    //查询单个账户跟对应的权限
    Admin_role findbyAdmin(int id);
    //添加账户并返回添加成功之后的ID主键
    void insert(Admin_role addForm);
    //修改账户跟角色
    void updataAdmin(Admin_role admin_role);
}
